import dayjs from 'dayjs'

export const formatTime = (item) => dayjs(item).format('YYYY-MM-DD HH:mm:ss')

export const meiju = (item) => {
  if (item === 0) {
    return '顶级'
  } else if (item === 1) {
    return '一级'
  } else {
    return '二级'
  }
}

export const bgc = (item) => {
  if (item === 0) {
    return ['#79C5FF', '#ECF5FF']
  } else if (item === 1) {
    return ['#67C23A', '#F0F9EB']
  } else {
    return ['#E6AAA7', '#FDF6EC']
  }
}
